package com.leizi.igym.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

/**
 * @Author: leizi0110
 * @CreateTime: 2024-04-09  09:44
 * @Description:
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Schema(description = "区域返回的数据格式")
public class RegionVO implements Serializable {
    @Serial
    private static final long serialVersionUID = -9106044169739110117L;

    @Schema(name = "主键值")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    @Schema(name = "区域名称")
    private String regionName;

    @Schema(name = "区域描述")
    private String descrip;

    @Schema(name = "区域照片")
    private String picture;

    @Schema(name = "区域对应器械列表")
    private List<EquipVO> equipList;
}
